package com.demo2do.fms.entity.supplier.ware;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author mohanlan
 *
 */
@Alias("wareDock")
public enum WareDock {
    
    A("01", "南沙码头"),
    
    B("02", "烟台打捞局港"),
    
    C("03", "重庆寸滩码头"),
    
    D("04", "东莞码头"),
    
    E("05", "大连码头"),
    
    F("06", "海通国际码头"),
    
    G("07", "天津码头"),
    
    H("08", "武汉军山码头"),
    
    I("09", "青岛码头"),
    
    J("10", "唐山港"),
    
    K("11", "烟台客运码头"),
    
    L("12", "武汉沌口码头"),
    
    M("13", "武汉金口码头");
    
    WareDock(String code, String description) {
        this.code = code;
        this.description = description;
    }
    
    private String code;
    
    private String description;
    
    /**
     * 
     * @param code
     * @return
     */
    public static WareDock codeOf(String code){
        
        for(WareDock wareDock : WareDock.values()){
            if(wareDock.getCode().equals(code)){
                
                return wareDock;
            }
        }
        return null;
    }
    
    public String getCode() {
        return code;
    }
    
    public String getDescription() {
        return description;
    }
    
}
